package com.neu.af.dataFilter.service;

import com.github.pagehelper.PageInfo;
import com.neu.af.dataFilter.entity.MonitorStatus;

import java.util.List;
import java.util.Map;

public interface MonitorStatusService {

    int insert(MonitorStatus monitorStatus);

    int update(MonitorStatus monitorStatus);

    int delete(String id);

    MonitorStatus getById(String id);

    List<MonitorStatus> getAll();

    List<MonitorStatus> getAllByFilter(Map<String, Object> map);

    List<MonitorStatus> getAllAbnormal();

    PageInfo<MonitorStatus> getAllAbnormal(Integer pageNum, Integer pageSize);

    // 设置当前标签状态异常
    int updateByTagNameWithAbStatus(Map<String, Object> map);

    // 设置所有标签状态正常
    int updateAllNormalStatus();

    List<MonitorStatus> getAbnormalMonitorByFilter(Map<String, Object> map);

    //pagenum   pagenow  ,pagesize
    PageInfo<MonitorStatus> getAllByFilter(Integer pageNum, Integer pageSize);

    PageInfo<MonitorStatus> getAllByFilter(Integer pageNum, Integer pageSize, Map<String, Object> map);

    int updateByTagNameWithDatasourceInterupt(Map<String, Object> map);

    List<MonitorStatus> getDataSourceInterupt();

    List<MonitorStatus> getDataSourceInterupt2(Map<String, Object> map);

    PageInfo<MonitorStatus> getAllByFilter2(Integer pageNum, Integer pageSize, Map<String, Object> map);

    int searchStatus5();
}
